import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'Main',
        component: () => import('../src/views/Main.vue'),
        children : []
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('../src/views/Login/login.vue')
    }
   
]

const router = new VueRouter({
    mode: 'history',
    routes
})
export default router